package com.cmic.rcs.emoji.common;

import org.slf4j.MDC;

/**
 * 用户自定义上下文
 */
public class CustomContext {

    public static final String TRACE_ID = "traceId";

    public static String getTraceId() {
        return MDC.get(TRACE_ID);
    }

    public static void setTraceId(String traceId) {
        MDC.put(TRACE_ID, traceId);
    }

    public static void clear() {
        MDC.remove(TRACE_ID);
    }
}